import Cookies from 'js-cookie';
const tokenName = 'business_token123456';

const setToken = (token: string) => {
  if (token != null) Cookies.set(tokenName, token);
};

const getToken = () => {
  return Cookies.get(tokenName) || '';
};

const removerToken = () => {
  return Cookies.remove(tokenName);
};

export default {
  setToken,
  getToken,
  removerToken,
};
